class Enrollment < ActiveRecord::Base
  belongs_to :user
  belongs_to :course

  validate_uniqueness_of( :course_id, :scope => :user_id)
  
end
